<template>
  <div>
    <van-nav-bar
      title="详情"
      left-text="返回"
      right-text="按钮"
      left-arrow
      @click-left="onClickLeft"
      @click-right="onClickRight"
    />
    <a :href="this.$route.params.news">点击跳转</a>
    <!-- {{this.$route.params.news}} -->
  </div>
</template>

<script>
import axios from "axios";
export default {
  data() {
    return {};
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
    onClickRight() {},
    onLoading() {
      // axios.get(`http://localhost:8888/news/detail?src=${this.$route.params.news}`).then(res=>{
      //     console.log(res)
      // })
      this.$router.push(this.$route.params.news);
    },
  },
  created() {
    // this.onLoading();
  },
};
</script>

<style></style>
